package com.mdh.runerrands.service;

import com.mdh.runerrands.pojo.BaseUser;

import java.util.List;

public interface BaseUserService {
    List<BaseUser> findBaseUserAll();
    int deleteBaseUserById(int id);
    int insert(BaseUser baseUser);
    BaseUser findBaseUserById(int id);
    int update(BaseUser baseUser);
    boolean batchDelete(int ...ids);
    List<BaseUser> query(int page,int pageSize,String telephone,String realname,String idCard,String status);
    int waiterCount(String telephone,String realname,String idCard,String status);
    List<BaseUser> customerQuery(int page,int pageSize,String realName,String telephone,String status);
    int customerCount(String realName,String telephone,String status);
    boolean recharge(int id ,String money);
    BaseUser findByUsername(String username);
}
